package com.linchong.concurrency.chapter2;

/**
 * @BelongsProject:concurrency_1
 * @BelongsPackage:com.linchong.concurrency.chapter2
 * @Author:linchong
 * @CreateTime:2019-12-31 15:30
 * @Description:利用策略模式，每次传入税率值
 */
@FunctionalInterface
public interface CalculatorStrategy {
	/**
	 * 抽取的计算税率的规则
	 *
	 * @param salary
	 * @param bonus
	 * @return
	 */
	double calculate(double salary, double bonus);
}
